
type iconType = "success" | "loading" | "error" | "none" | undefined
// 提示框
export function showToast(title: string, icon?: iconType) {
    uni.showToast({
        title,
        icon,
    })
}
// 加载框
export function showLoading(title: string, mask: boolean = true) {
    uni.showLoading({
        title,
        mask,
    })
}
// 确认框
export function showModal(title: string, content: string, success:any) {
    uni.showModal({
        title,
        success,
        content,
    })
}